package com.gxar.quick.ar.server.base.model.exchange.vo.response;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.gxar.quick.ar.server.base.common.utils.BigDecimalSerialize;
import com.gxar.quick.ar.server.base.model.exchange.vo.BaseExchangeItemVO;
import com.gxar.quick.ar.server.base.model.exchange.vo.ExchangeItemTemplateVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/2/20 10:37
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel("兑换品详情响应")
@Data
public class ExchangeItemInfoResponse extends BaseExchangeItemVO {

    @ApiModelProperty("价格")
    @JSONField(name = "price")
    @JsonProperty("price")
    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal price;

    @ApiModelProperty("兑换品模板集合")
    @JSONField(name = "exchange_item_templates")
    @JsonProperty("exchange_item_templates")
    private List<ExchangeItemTemplateVO> exchangeItemTemplates;

}
